package com.example.Windturbine.Service;

import com.alibaba.fastjson.JSONArray;
import com.example.Windturbine.DataObject.ProductInfoDO;
import com.example.Windturbine.Error.BusinessException;
import com.example.Windturbine.Response.CommonResult;
import com.example.Windturbine.Service.Model.ProductModel;

import java.util.List;

/**
 * @Author 丁永新
 * @Date 2021/12/17
 */
public interface ProductService {
    List<ProductModel> getAll() throws BusinessException;

    List<ProductModel> getUserProduct(Integer id) throws BusinessException;

    void deleteById(Integer id) throws BusinessException;

    int submitProduct(ProductModel productModel) throws BusinessException;

    List<ProductInfoDO> getProductInfo(Integer id) throws BusinessException;

    void submitBom(ProductInfoDO productInfoDO) throws BusinessException;

    CommonResult queryProductGraphInfo(Integer productid) throws BusinessException;
}
